<?php echo $header; ?>
<?php
echo $column_left;
echo $column_right;
$width_content = '98%';
if (($column_left) && ($column_right)) {
    $width_content = '48%';
} elseif (($column_left) || ($column_right)) {
    $width_content = '73%';
}
?>
<div class="content" style="width:<?php echo $width_content; ?>">  
    <div class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
            <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
        <?php } ?>
    </div>
    <ul data-role="listview" data-divider-theme="a" data-inset="true">
        <li data-role="list-divider"><h1><?php echo $heading_title; ?></h1></li>
    </ul>
    <br />
    <?php if ($products) { ?>
        <div class="wishlist-info">
            <ul data-role="listview" data-divider-theme="a" data-inset="true">
                <li data-role="list-divider"><?php echo $heading_title; ?></li>
                <?php foreach ($products as $product) { ?>
                    <li id="wishlist-row<?php echo $product['product_id']; ?>"><a href="<?php echo $product['href']; ?>">
                            <?php if ($product['thumb']) { ?>
                                <img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" />
                            <?php } ?>
                            <h3><?php echo $product['name']; ?></h3>
                            <p><span class="model"><?php echo $column_model; ?>: <?php echo $product['model']; ?></span><br />
                                <span class="stock"><?php echo $column_stock; ?>: <?php echo $product['stock']; ?></span><br />
                                <?php if ($product['price']) { ?>
                                    <?php echo $column_price; ?>: 
                                    <span class="price">
                                        <?php if (!$product['special']) { ?>
                                            <?php echo $product['price']; ?>
                                        <?php } else { ?>
                                            <span class="price-old"><?php echo $product['price']; ?></span> <span class="price-new"><?php echo $product['special']; ?></span>
                                        <?php } ?>
                                    </span>
                                <?php } ?>
                            </p>
                        </a>
                    </li>
                    <li class="action ui-grid-a">
                        <div class="left ui-block-a"><a data-role="button" href="#" data-icon="myapp-cart" onclick="addToCart('<?php echo $product['product_id']; ?>');" data-theme="c"><?php echo $button_cart; ?></a></div>
                        <div class="right ui-block-b"><a data-role="button" data-icon="delete" href="<?php echo $product['remove']; ?>"><?php echo $button_remove; ?></a></div>
                        <div class="Clear"><br /></div>
                    </li>
                <?php } ?>
            </ul>
        </div>
        <div class="Clear"><br /></div>
        <div class="buttons">
            <div class="right"><a data-role="button" data-theme="c" href="<?php echo $continue; ?>" class="button"><span><?php echo $button_continue; ?></span></a></div>
        </div>
    <?php } else { ?>
        <?php echo $text_empty; ?><br />
        <div class="buttons">
            <div class="right"><a data-role="button" href="<?php echo $continue; ?>" class="button"><span><?php echo $button_continue; ?></span></a></div>
        </div>
    <?php } ?>
    <?php echo $content_bottom; ?>
</div>
<?php echo $footer; ?>